<?php
/**
 * 全局错误对照配置
 */
return [
    'success' => [
        'code' => 20000,
        'info' => ''
    ],
    'repeat' => [
        'code' => 80000,
        'info' => '重复添加'
    ],
    'name_repeat' => [
        'code' => 80000,
        'info' => '名称重复'
    ],
    'url_false' => [
        'code' => 80000,
        'info' => '路由错误',
    ],
    'request_success' => [
        'code' => 20000,
        'info' => '请求成功'
    ],
    'operate_success' => [
        'code' => 20000,
        'info' => '操作成功',
    ],
    'please_login' => [
        'code' => 80000,
        'info' => '请先登录',
    ],
    'not_delete_course' => [
        'code' => 80000,
        'info' => '该分类下拥有课程，不可删除',
    ],
    'not_delete_class' => [
        'code' => 80000,
        'info' => '该分类下拥有子类，不可删除',
    ],
    'pass_operate_success' => [
        'code' => 20000,
        'info' => '密码修改成功',
    ],
    'code_send_success' => [
        'code' => 20000,
        'info' => '发送成功',
    ],
    'code_check_success' => [
        'code' => 20000,
        'info' => '验证成功',
    ],
    'operate_error_delete' => [
        'code' => 80000,
        'info' => '删除失败',
    ],
    'operate_success_add' => [
        'code' => 20000,
        'info' => '新增成功',
    ],
    'operate_success_edit' => [
        'code' => 20000,
        'info' => '保存成功',
    ],
    'operate_success_delete' => [
        'code' => 20000,
        'info' => '删除成功',
    ],
    'operate_success_reset' => [
        'code' => 20000,
        'info' => '重置成功',
    ],
    'edit_error' => [
        'code' => 80000,
        'info' => '修改失败',
    ],
    'cancel_error' => [
        'code' => 80000,
        'info' => '取消失败',
    ],
    'verify_error' => [
        'code' => 80000,
        'info' => '审核失败',
    ],
    'recommend_error' => [
        'code' => 80000,
        'info' => '推荐失败',
    ],
    'operate_success_start' => [
        'code' => 20000,
        'info' => '启用成功',
    ],
    'operate_success_close' => [
        'code' => 20000,
        'info' => '关闭成功',
    ],
    'operate_success_list' => [
        'code' => 20000,
        'info' => '获取成功',
    ],
    'operate_success_login' => [
        'code' => 20000,
        'info' => '登录成功',
    ],
    'operate_success_logout' => [
        'code' => 20000,
        'info' => '注销成功',
    ],
    'params_error' => [
        'code' => 80000,
        'info' => ''
    ],
    'provice_error' => [
        'code' => 80000,
        'info' => '请选择省'
    ],
    'provice_uniqe' => [
        'code' => 80000,
        'info' => '省重复'
    ],
    'city_error' => [
        'code' => 80000,
        'info' => '请选择市'
    ],
    'image_error' => [
        'code' => 80000,
        'info' => '请上传图片'
    ],
    'permission_error' => [
        'code' => 80000,
        'info' => '请选择菜单'
    ],
    'params_format' => [
        'code' => 80000,
        'info' => '请求数据data格式有误'
    ],
    'bigarea_format' => [
        'code' => 80000,
        'info' => '关联大区为空'
    ],
    'role_error' => [
        'code' => 80002,
        'info' => '角色下有人员存在，不能删除',
    ],
    'dept_error' => [
        'code' => 80003,
        'info' => '上级部门不能是当前部门',
    ],
    'detail_error'=>[
        'code' => 80000,
        'info' => '获取详情失败'
    ],
    'big_area_error'=>[
        'code' => 80000,
        'info' => '该大区关联了部门不能删除'
    ],
    'param_error'=>[
        'code' => 80000,
        'info' => '参数错误'
    ],
    'old_error'=>[
        'code' => 80000,
        'info' => '记录不存在'
    ],
    'city_param_error'=>[
        'code' => 80000,
        'info' => '没有关联城市的参数'
    ],
    'add_error'=>[
        'code' => 80000,
        'info' => '新增失败'
    ],
    'update_error'=>[
        'code' => 80000,
        'info' => '编辑失败'
    ],
    'page_permission_error'=>[
        'code' => 80000,
        'info' => '该菜单子菜单或按钮被角色关联不能删除'
    ],
    'operations_user_function_error'=>[
        'code' => 80000,
        'info' => '该职能已被用户关联不能删除'
    ],
    'role_define_error'=>[
        'code' => 80000,
        'info' => '该角色被员工关联了不能删除'
    ],
    'depart_user_error'=>[
        'code' => 80000,
        'info' => '该部门下还有员工不能删除'
    ],
    'add_user_error'=>[
        'code' => 80000,
        'info' => '该部门已经有领导了'
    ],
    'update_leader_error'=>[
        'code' => 80000,
        'info' => '修改该部门员工的直接领导失败'
    ],
    'update_pass_error'=>[
        'code' => 80000,
        'info' => '密码修改失败'
    ],
    'old_pass_error'=>[
        'code' => 80000,
        'info' => '原密码错误'
    ],
    'new_pass_error'=>[
        'code' => 80000,
        'info' => '两次密码不一致'
    ],
    'new_old_pass_error'=>[
        'code' => 80000,
        'info' => '新密码与旧密码不能一致'
    ],
    'pass_length_error'=>[
        'code' => 80000,
        'info' => '密码长度为6-14位之间'
    ],
    'mobile_miss_error'=>[
        'code' => 80000,
        'info' => '该电话不存在'
    ],
    'code_send_error'=>[
        'code' => 80000,
        'info' => '验证码已经发了，请勿重复发送'
    ],
    'mobile_code_error'=>[
        'code' => 80000,
        'info' => '短信验证码错误或者过期'
    ],
    'code_check_error'=>[
        'code' => 80000,
        'info' => '图形验证码错误或者过期'
    ],
    'login_error'=>[
        'code' => 80000,
        'info' => '账号或密码错误'
    ],
    'server_communication' => [
        'code' => -2,
        'info' => '当前服务器通信异常，请稍后重试。'
    ],
    'contacts_name_error'=>[
        'code' => 80000,
        'info' => '联系人超过8个中文字符'
    ],
    'contacts_mobile_error'=>[
        'code' => 80000,
        'info' => '联系人方式超过20个字符'
    ],
];